package com.fulu.game.bi.controller.market;

import com.fulu.game.bi.common.controller.BaseController;
import com.fulu.game.bi.entity.po.roi.NewUserRealtimeStat;
import com.fulu.game.bi.entity.vo.Result;
import com.fulu.game.bi.entity.vo.market.NewAddUserDisplayVO;
import com.fulu.game.bi.entity.vo.market.NewAddUserQueryVO;
import com.fulu.game.bi.redis.service.market.NewAddUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *  市场、增长 - 今日新用户实时数据
 */
@RequestMapping("/api/v1/new-user-realtime")
@RestController
public class NewUserRealtimeController extends BaseController {

    @Autowired
    private NewAddUserService newAddUserService;

    /**
     * 今日
     */
    @PostMapping("/today")
    public Result<NewUserRealtimeStat> today() {
        NewUserRealtimeStat stat = newAddUserService.newUserRealtimeStat();
        return Result.success().data(stat).msg("查询成功");
    }

    /**
     * 昨日
     */
    @PostMapping("/yesterday")
    public Result<NewUserRealtimeStat> yesterday() {
        NewUserRealtimeStat stat = newAddUserService.newUserRealtimeStatYest();
        return Result.success().data(stat).msg("查询成功");
    }


}
